home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000294_fdc@columbia.edu_Fri May 14 15:58:01 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Shut down server on disconnect
  5. Date: 14 May 2004 19:52:51 GMT
  6. Organization: Columbia University
  7. Lines: 33
  8. Message-ID: <slrncaa8sj.cbh.fdc@sesame.cc.columbia.edu>
  9. References: <89WdndOf4PyJiDjd38DK-w@speakeasy.net>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1084564371 14754 128.59.59.56 (14 May 2004 19:52:51 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 14 May 2004 19:52:51 GMT
  15. User-Agent: slrn/0.9.8.0 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15021
  17.  
  18. On 2004-05-14, Steve <stevebNoSpamPlease@comcast.com> wrote:
  19. : Is there a setting to exit server mode when a file transfer coming in dies
  20. : because of a disconnected phone line?  I have a PC that I leave in server
  21. : mode waiting for a remote PC to dial in and send files.  I would like my PC
  22. : to exit Server mode when I get a dropped line.  If this is possible, what
  23. : version of K95 do I need?
  24. :
  25. We always recommend the latest, which currently is 2.1.3:
  26.  
  27.   http://www.columbia.edu/kermit/k95.html
  28.   http://www.columbia.edu/kermit/k95upgrade.html
  29.  
  30. Something like the following should work.  The example assumes you want
  31. to wait for call, enter server mode when it comes in, exit server mode
  32. on disconnect (or when the user says BYE or FINISH), and then go back
  33. and do it again:
  34.  
  35.   set modem type usrobotics  ; or whatever
  36.   set speed 57600            ; or whatever
  37.   set carrier-watch auto     ; (this is the default)
  38.   while true {               ; Repeatedly...
  39.       answer                 ; Wait for a call
  40.       if success server      ; If no errors enter server mode 
  41.   }
  42.  
  43. The SERVER command should return if the call disconnects or the user
  44. explicitly terminates it.  The ANSWER commands begins by hanging up
  45. the phone (if off hook) and resetting the modem.  SET CARRIER-WATCH AUTO
  46. means that a Carrier signal is not required while waiting for the call 
  47. to come in, but once the phone is answered, Carrier is required; should
  48. it drop, the active command (SERVER in this case) terminates.
  49.  
  50. - Frank